package com.tt.controller;


import com.tt.entity.vo.MovieRankScoreVO;
import com.tt.service.MovieRankScoreService;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * <p>
 * 电影评分排行榜,需要定期更新 前端控制器
 * </p>
 *
 * @author TP
 * @since 2023-03-04 09:14:12
 */
@RestController
//@RequestMapping("/rankScore")
public class MovieRankScoreController {

    private final MovieRankScoreService movieRankScoreServiceImpl;

    public MovieRankScoreController(MovieRankScoreService movieRankScoreServiceImpl) {
        this.movieRankScoreServiceImpl = movieRankScoreServiceImpl;
    }

    @GetMapping("/rankScore")
    public ArrayList<ArrayList<MovieRankScoreVO>> getRankScore() {
        return movieRankScoreServiceImpl.getRankScore();
    }

}
